package com.xiaoyun.rollutil.controller;

import com.xiaoyun.rollutil.entity.BarCodeInfo;
import com.xiaoyun.rollutil.service.IBarCodeInfoService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xiaoyun461
 * @Date: 2021/12/1 18:40
 */
@RestController
@AllArgsConstructor
public class BarCodeController {

    private final IBarCodeInfoService barCodeInfoService;



    @GetMapping("getBarCode")
    public BarCodeInfo getBarCode(Long code) {
        return barCodeInfoService.getBarCodeInfo(code);
    }
}
